# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=kanshi
pkgver=1.1.0
pkgrel=0
pkgdesc="Dynamic display configuration for Wayland"
url="https://wayland.emersion.fr/kanshi/"
arch="all"
license="MIT"
options="!check" # no test suite
makedepends="meson wayland-dev scdoc"
subpackages="$pkgname-doc"
source="https://github.com/emersion/kanshi/releases/download/v$pkgver/kanshi-$pkgver.tar.gz"

build() {
	meson \
		--buildtype=plain \
		--prefix=/usr \
		--mandir=/usr/share/man \
		build
	ninja -C build
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="6582bae7b73ad13cad83e4d537c7c870699a72bf6993becaafa47a3dd70439a3c626ffff4874c8f737b32b62ad7512772c2c3bf54ac2cb74879213bd40b8d7a1  kanshi-1.1.0.tar.gz"
